#ifndef ENGINEERUI_H
#define ENGINEERUI_H

#include <QWidget>
#include "BaseWidget.h"
#include "WidgetId.h"
#include "AppLog.h"
#include <QButtonGroup>
#include <QLabel>
#include "Mcu.h"

namespace Ui {
class EngineerUi;
}

class EngineerUi : public BaseWidget
{
    Q_OBJECT

public:
    explicit EngineerUi(QWidget *parent = 0);
    ~EngineerUi();
    void activate()override;
    void inactivate()override{}

private slots:
    void on_gohome_clicked();

    void on_goback_clicked();

    void functionBtnSlot(int id);

    void on_spiFlashSwitch_clicked(bool checked);

    void reportMcuVersionSlot(McuVersion* version);

    void on_screenshot_clicked(bool checked);


    void on_temperature_clicked(bool checked);

    void on_toolButton_clicked();

    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

    void on_pushButton_4_clicked();

    void on_sensorRegister_6_clicked();

    void on_pushButton_5_clicked();

    void on_pushButton_6_clicked();

    void on_pushButton_7_clicked();

    void on_pushButton_8_clicked();

    void on_pushButton_10_clicked();

    void on_pushButton_9_clicked();

    void on_pushButton_11_clicked();

private:
    Ui::EngineerUi *ui;
    QButtonGroup g_functionBtn;
    int m_count = 0;
    int m_isStartScrennTest = 0;
    QLabel *m_backLabel = nullptr;
signals:
    void setSoftwareKeyStateSignal(bool state);

    // QWidget interface
protected:
    void mousePressEvent(QMouseEvent *event);
};

#endif // ENGINEERUI_H
